package com.oracle.team.domain;

import com.oracle.team.service.Status;

public class Employee {
	private int id;
	private String name;
	private int age;
	private double salary;
	
	public Employee(int id, String name, int age, double salary) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
		this.salary = salary;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}

	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}
	
	//员工列表方法
	public String getDetails() {
		return id +"\t" + name +"\t" + age +"\t" + salary;		
	}
	
	//新加一个共有方法
	public String getListDetails() {
		return getDetails();		
	}

}
